/***********************************************************************
 * @file:        xxx.c
 * @author:      guangjieMVP
 * @version:     v1.00.00
 * @date:        2020-xx-xx
 * @github:      https://github.com/guangjieMVP
 * @brief: 
***********************************************************************/
/***********************************************************************
 * @file:        xxx.c
 * @author:      guangjieMVP
 * @version:     v1.00.00
 * @date:        2020-xx-xx
 * @github:      https://github.com/guangjieMVP
 * @brief: 
***********************************************************************/
#ifndef _STACK_WITH_VALIDATOR_H_
#define _STACK_WITH_VALIDATOR_H_

#include "stack.h"
#include "stack_validator.h"
/* 继承普通栈类和校验器类，实现带校验的栈类 */

typedef struct _stack_with_validator{
    stack_t super;                           //继承普通栈类
    stack_validator_t *validator;              //继承校验器类
}stack_with_validator_t;


#endif